$(function() {
	Highcharts.setOptions({
		chart: {
			backgroundColor: {
				linearGradient: [0, 0, 500, 500],
				stops: [[0, 'rgb(255, 255, 255)'], [1, 'rgb(200, 200, 200)']]
			},
			borderWidth: 2,
			plotBackgroundColor: 'rgba(255, 255, 255, .5)',
			plotShadow: true,
			plotBorderWidth: 1
		}
	});
	/*--------------------------------------------------------*/
	var chart1 = new Highcharts.Chart({
		chart: {
			renderTo: 'chart1',
		},
		title: {
			text: '呵呵'
		},
		xAxis: {
			type: 'datetime'
		},

		series: [{
			data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
			pointStart: Date.UTC(2010, 0, 1),
			pointInterval: 3600 * 1000 // one hour
		}]
	});
	/*--------------------------------------------------------*/
	var chart2 = new Highcharts.Chart({
		chart: {
			renderTo: 'chart2',
			type: 'column'
		},
		title: {
			text: '哦'
		},
		xAxis: {
			type: 'datetime'
		},
		yAxis: {
			title: {
				text: '中文测试'
			}
		},
		series: [{
			data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4],
			pointStart: Date.UTC(2010, 0, 1),
			pointInterval: 3600 * 1000 // one hour
		}]
	});
/*--------------------------------------------------------*/
    var chart3 = new Highcharts.Chart({
        chart: {
            renderTo: 'chart3', //写入的div的ID
            type: 'column'
        },
        title: {
            text: 'Fruit Consumption'
        },
        xAxis: {
            categories: ['Apples', 'Bananas', 'Oranges']
        },
        yAxis: {
            title: {
                text: 'Fruit eaten'
            }
        },
        series: [{
            name: 'Jane',
            data: [11, 12, 14]
        }, {
            name: 'John',
            data: [15, 17, 13]
        }]
    });
/*--------------------------------------------------------*/
    var options = {
        chart: {
            renderTo: 'chart4',
            type: 'column'
        },
        series: [{
            name: 'Jane',
            data: [1, 0, 4]
        }]
    };
    
    options.series.push({
        name: 'John',
        data: [3, 4, 2]
    });
    var chart4 = new Highcharts.Chart(options);

});

